package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目成品料关联关系业务对象 n_materiel_project_item
 *
 * @author cj
 * @date 2023-10-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NMaterielProjectItemBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 项目主键
     */
    @NotBlank(message = "项目主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectId;

    /**
     * 材料主键
     */
    @NotBlank(message = "材料主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materielItemId;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal num;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal prince;


}
